#ifndef _CORIENTATION_H_
#define _CORIENTATION_H_

#include "GameComponentTemplate.h"
#include "Ogre.h"

using namespace Ogre;

class GameComponent;

class COrientationTemplate : public GameComponentTemplate {
public:

	Ogre::Quaternion Orientation;
	
	COrientationTemplate();
	~COrientationTemplate();

	virtual const comp_id_type& componentID() const {
		return mComponentID;
	}
	virtual const comp_id_type& familyID() const {
		return mFamilyID;
	}

	virtual GameComponent *makeComponent();

private:
	static comp_id_type mComponentID;
	static comp_id_type mFamilyID;
};

class COrientation : public GameComponent {
public:
	
	Ogre::Quaternion Orientation;

	COrientation();
	COrientation(COrientationTemplate* ct);
	
	~COrientation();

	void update();
	void setup();

	virtual const comp_id_type& familyID() const { return mFamilyID; }
	virtual const comp_id_type& componentID() const { return mComponentID; }
private:
	static comp_id_type mFamilyID;
	static comp_id_type mComponentID;
};


#endif
